package projeto1;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.ImageIcon;

import java.awt.SystemColor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTextField;


public class RemoverAdm extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			RemoverAdm dialog = new RemoverAdm();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public RemoverAdm() {
		setBounds(100, 100, 541, 338);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBackground(SystemColor.text);
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		{
			JLabel lblRemoverAdministrador = new JLabel("Remover Administrador:");
			lblRemoverAdministrador.setFont(new Font("Arial", Font.BOLD, 20));
			lblRemoverAdministrador.setBounds(10, 129, 234, 14);
			contentPanel.add(lblRemoverAdministrador);
		}
		{
			JLabel lblNewLabel = new JLabel("");
			lblNewLabel.setIcon(new ImageIcon("C:\\Users\\vania\\Desktop\\customLogo.gif.jpg"));
			lblNewLabel.setBounds(10, 0, 403, 92);
			contentPanel.add(lblNewLabel);
		}
		{
			JLabel lblDigiteOLogin = new JLabel("Digite o Login:");
			lblDigiteOLogin.setFont(new Font("Arial", Font.BOLD, 14));
			lblDigiteOLogin.setBounds(210, 171, 129, 14);
			contentPanel.add(lblDigiteOLogin);
		}
		{
			textField = new JTextField();
			textField.setBounds(344, 169, 159, 20);
			contentPanel.add(textField);
			textField.setColumns(10);
		}
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
			{
				JButton btnNewButton = new JButton("<<< Anterior..");
				btnNewButton.setFont(new Font("Arial", Font.PLAIN, 13));
				
				btnNewButton.addActionListener(new ActionListener() {
					//Chama GerenciarAdm
					public void actionPerformed(ActionEvent e) {
						GerenciarAdm gerencia = new GerenciarAdm();
						gerencia.setVisible(true);
					}
				});
				
				buttonPane.add(btnNewButton);
			}
			{
				JButton okButton = new JButton("OK");
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancel");
				cancelButton.setActionCommand("Cancel");
				cancelButton.addActionListener(new ActionListener() {
					//Chama GerenciarAdm 
					public void actionPerformed(ActionEvent e) {
						GerenciarAdm gerencia = new GerenciarAdm();
						gerencia.setVisible(true);
					}
				});
				buttonPane.add(cancelButton);
			}
		}
	}

}
